/*
 * Copyright (c) 2018.
 * http://www.ulabcare.com
 */

package com.mt.roll.gateway.feign.fallback;

import com.mt.roll.core.dto.LoginUser;
import com.mt.roll.core.vo.R;
import com.mt.roll.gateway.feign.PassportService;
import com.mt.roll.passport.controller.PassportController;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 统一用户服务失败回调实现
 *
 * @author jiff
 * @date 2018/11/1
 * @since 1.0
 */
@Service
@Slf4j
public class PassportServiceFallback implements PassportService {
    @Autowired
    PassportController passportController;

    @Override
    public R<LoginUser> authorization(String url, String method) {
        return passportController.authorization(url, method);
    }
}
